POV-Ray : Newsgroups : povray.newusers : Wrapping A Hieght Field Object Around an elipsoid object : Re: Wrapping A Hieght Field Object Around an elipsoid object Server Time
4 Nov 2024 17:32:42 EST (-0500)
  Re: Wrapping A Hieght Field Object Around an elipsoid object  
From: Christoph Hormann
Date: 26 Jan 2003 03:36:47
Message: <3E339E1F.2AE8F2D9@gmx.de>
James Patterson wrote:
> 
> >   The HF_Sphere() macro in shapes.inc has been designed for this purpose.
> > See the documentation about standard include files and shapes.inc.
> 
> I found that, but am not sure how to use it with my grayscale topographic
> map of the earths surface.  The documentation says that the macro does not
> use a height field image directly for input and does not tell me how to use
> one indirectly.  I can create a planar height field using pov's height field
> object and my topographic map just fine.  What am I missing?

That macros take a function for defining the elevation.  Something like:

#declare fn_Earth=function {
  pigment {
    image_map {
      png "elevation.png"         
      interpolate 2      
    }                                               
  }   
} 

should work.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.